// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-9-6

#ifndef __ROOMPING_H_CLIENT_MAIN__
#define __ROOMPING_H_CLIENT_MAIN__

#pragma once

#include <common/netmsg/netmsg.h>

//##ModelId=44C4B5E40272
class CJoyRoomPing
{
protected:
	//##ModelId=44C4B5E40280
    int m_IP;
	//##ModelId=44C4B5E40290
    int m_times;
	//##ModelId=44C4B5E40291
    DWORD m_delay;

	//##ModelId=44C4B5E40292
    void DoPing();
public:
	//##ModelId=44C4B5E4029F
    CJoyRoomPing(void);
	//##ModelId=44C4B5E402A1
    virtual ~CJoyRoomPing(void);


	//##ModelId=44C4B5E402A4
    bool TestPing();

	//##ModelId=44C4B5E402A5
    virtual void OnMsg_PingRequest(const JoyMessage::MS_PingRequest*);
	//##ModelId=44C4B5E402AF
    virtual void OnMsg_PingResponse(const JoyMessage::MS_PingResponse*);
};

#endif  // __ROOMPING_H_CLIENT_MAIN__
